<?php

$obj = array('a' => 1, 'b' => 2);

/*
class Foo
{
    public $a;
    public $b;

    public function __construct()
    {
        $this->a = 1;
        $this->b = 2;
    }
}

$obj = new Foo();
*/

$num = 0;
for ($i = 0; $i <= 1000000; $i++) {
    $num += $obj['a'] + $obj['b'];
    //$num += $obj->a + $obj->b;
}

echo $num, "\n";
